<%- include('header.html') -%>

<h1>掘金博客搜索</h1>
<form id="myForm">
  <input name="keyword" type="text" />
  <button type="submit">搜索</button>
</form>
<ul id="users">
  <% data.forEach(function(item){ %>
  <li>
    <% if (item.title) { %>
    <div class="article-card">
      <!-- <img class="article-cover" src="<%= item.result_model.article_info.cover_image %>" alt="<%= item.result_model.article_info.title %>" /> -->
      <div class="article-content">
        <h2 class="title"><%= item.title %></h2>
        <div class="abstract"><%= item.brief_content %></div>
      </div>
    </div>
    <% } %>
  </li>
  <% }) %>
</ul>
<%- include('footer.html') -%>
